//
//  CPYDataBaseTool.h
//  Summer
//
//  Created by chenpengyu on 16/3/17.
//  Copyright © 2016年 cpy. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "CPYSONGSModel.h"
#import "CPYDiscoveryPageSongListModel.h"
#import "CPYDiscoveryPageAuditionListModel.h"

@interface CPYDataBaseTool : NSObject

+ (instancetype)dataBaseManager;
// 打开数据库
- (void)openDataBase;
// 关闭数据库
- (void)closeDataBase;
// 创建数据库
- (void)createTable;
// 插入数据
- (void)insertDataBase:(CPYDiscoveryPageSongListModel *)songDetailModel;
// 查找数据
- (CPYSONGSModel *)selectDataBase;
// 修改数据
- (void)updataDataBase:(NSString *)url withId:(NSString *)Id;
// 删除数据
- (void)deleteDataBase:(NSString *)Id;
// 判断是否存有此页数据
- (BOOL)selectDataBaseWithId:(NSString *)Id ;
@end
